﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Common.Model;
using JOthello.Controls;

namespace JOthello.Forms
{
    public partial class MultiplayerForm : Form
    {
        private CSpieler spieler;
        private MultiplayerControl control;

        #region getter / setter
        public DataGridView DgvSpielerAll
        {
            get
            {
                return dgvSpielerAll;
            }
            set
            {
                dgvSpielerAll = value;
            }
        }
        public Button BtnConnect
        {
            get
            {
                return btnConnect;
            }
            set
            {
                btnConnect = value;
            }
        }
        public TextBox TxtSrv
        {
            get
            {
                return txtSrv;
            }
            set
            {
                txtSrv = value;
            }
        }
        public NumericUpDown NudPort
        {
            get
            {
                return nudPort;
            }
            set
            {
                nudPort = value;
            }
        }
        #endregion

        public MultiplayerForm(CSpieler spieler)
        {
            InitializeComponent();

            this.Icon = Properties.Resources.icon;

            this.Focus();
            this.spieler = spieler;
        }

        private void MultiplayerForm_Shown(object sender, EventArgs e)
        {
            control = new MultiplayerControl(this, spieler);
        }
    }
}
